cmake_minimum_required(VERSION 3.0.0)
project(conference-assistant VERSION 0.1.0 LANGUAGES C)

include(FindPkgConfig)
pkg_check_modules(MICROHTTPD REQUIRED libmicrohttpd)
pkg_check_modules(JSON-C REQUIRED json-c)

add_executable(conference-assistant main.c)
add_executable(control control.c)

add_executable(record record.c)
target_link_libraries(record asound)

add_executable(play play.c)
target_link_libraries(play asound)

target_link_libraries(conference-assistant PRIVATE ${MICROHTTPD_LIBRARIES} ${JSON-C_LIBRARIES} asound)
target_include_directories(conference-assistant PRIVATE ${MICROHTTPD_INCLUDE_DIRS}${JSON-C_INCLUDE_DIRS})
set_target_properties(conference-assistant PROPERTIES
    VS_DEBUGGER_COMMAND_ARGUMENTS "8080"
)